<div class="cart">
    <div class="commodity">
        <div class="commodity-top">
            <div class="commodity-top-img">
                <img src="{pic}" style="width: 4rem; height: 4rem; display: block">
            </div>
            <div class="commodity-top-details">
                <div class="top-details-name">{name}</div>
                <div class="top-details-price">￥&nbsp;<span>{price}</span></div>
                <div class="commodity-top-choice">
                    <div class="top-choice-left" onclick="decnum(this);">
                        <img class="reduce-2" src="{web}/img/wx-good/shopping-cart-2-2.png" style="height: 2rem;">
                    </div>
                    <div class="top-choice-number">
                        <input class="hidden_GOODS_PRICE" type="hidden" value="{price}"/>
                        <input class="hidden_GOODS_CODE" type="hidden" value="{code}"/>
                        <input class="hidden_GOODS_NUM" type="hidden" value="{num}"/>
                        <input class="hidden_GOODS_STOCK" type="hidden" value="{stock}"/>
                        <input type="text" class="text_box" id="goods_num" value="{num}"
                               onblur="update_goods_num(this,{stock});"/>
                    </div>
                    <div class="top-choice-right"><img src="{web}/img/wx-good/shopping-cart-3.png" style="height: 2rem;"
                                                       onclick="addnum(this,{stock});">
                    </div>
                </div>
            </div>
        </div>
        <div class="commodity-foot">
            <div class="commodity-foot-bottom"><input class="choice-checkbox" type="checkbox"/></div>
            <div class="commodity-foot-words"><img src="{web}/img/wx-good/shopping-cart-5.png"
                                                   style="height: 0.95rem" onclick="del_goods(this);"></div>
        </div>
    </div>
    <div class="commodity-hr"></div>
</div>